how to install a command hook